<template>
  <transition name="modal" tag="div">
    <div class="modal" v-show="show" transition="fade">
      <div class="guide-content">
        <div class="share-img"></div>
        <div class="i-konw" @click="iknowClick"></div>
      </div>
    </div>
  </transition>
</template>

<style lang="stylus" scoped>
  @import "~style/varibles.styl"
  .modal-enter-active
    animation: modal-in .15s linear
  .modal-leave-active
    animation: modal-in .15s reverse linear
  @keyframes modal-in
    0%
      transform: translateY(-20px) rotateX(-35deg)
      opacity :0
    50%
      opacity :0.5
    100%
      transform: translateY(0) rotateX(0)
      opacity :1
  .modal
    width: 100%
    height: 100%
    position: fixed
    left: 0
    top: 0
    right: 0
    bottom: 0
    z-index: 1001
    outline: 0
    overflow: hidden
    background: rgba(0,0,0,.7)
    .guide-content
      display flex
      flex-direction column
      .share-img
        background url("/static/img/share@2x.png") no-repeat
        background-size 100% 100%
        height 3.4rem
        width 5.56rem
        position absolute
        right .3rem
        top .16rem
      .i-konw
        background url("/static/img/btn_iknow@2x.png") no-repeat
        background-size 100% 100%
        height 1rem
        width 3rem
        position absolute
        left 50%
        transform:translateX(-50%)
        top 50%
</style>

<script>
export default {
  name: 'guide',
  data () {
    return {
      show: false
    }
  },
  methods: {
    iknowClick(){
      this.show = false
    }
  }
}
</script>
